package com.heima.search.service;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.search.pojo.ArticleDoc;

import java.util.List;

/**
 * @author Fuqiang
 * @since :2023-03-31
 */
public interface ApUserSearchService {
    /**
     * 批量导入es
     *
     * @param articleDtoList
     */
    void importArticle(List<ArticleDto> articleDtoList);

    /**
     * app用户关键词搜索
     *
     * @param dto
     * @return
     */
    List<ArticleDoc> searchByWords(UserSearchDto dto);
}
